﻿using HPIT.RentHouse.Common;
using RentHouse.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RentHouse.IService
{
    public interface IRolesService:IServiceSupport
    {
        //角色列表
        List<RoleDTO> GetPagedList(int start, int length, string name, ref int rowcount);
        List<PermissionDTO> GetList();

        //添加角色权限
        AjaxResult AddRole(RoleEditDTO editDTO);

        RoleEditDTO GetEditRole(long id);

        //修改角色权限
        AjaxResult Update(RoleEditDTO dto);

        //删除角色权限
        AjaxResult Delete(long id);

        //批量删除
        AjaxResult DeleteBatch(List<long> ids);
    }
}
